export * from './types';
export * from './managers/LanguageManager';
export * from './managers/NetworkManager';
export * from './parsers/ResourceParser';

// 创建默认实例
import { LanguageManagerOptions } from './types';
import { LanguageManager } from './managers/LanguageManager';

let defaultInstance: LanguageManager | null = null;

/**
 * 获取默认语言管理器实例
 */
export function getLanguageManager(options?: LanguageManagerOptions): LanguageManager {
  if (!defaultInstance && options) {
    defaultInstance = new LanguageManager(options);
  }
  return defaultInstance!;
}

/**
 * 设置默认语言管理器实例
 */
export function setLanguageManager(instance: LanguageManager): void {
  defaultInstance = instance;
} 